package com.yb.guigu.pick.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 姚兵
 * @since 2023-05-30
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_menu")
@ApiModel(value = "SysMenu对象", description = "")
public class SysMenu {

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(" 名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("标题")
    @TableField("title")
    private String title;

    @ApiModelProperty("描述信息")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("前端路由路径")
    @TableField("path")
    private String path;


    @ApiModelProperty("图标")
    @TableField("icon")
    private String icon;

    @ApiModelProperty("sort")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty("level")
    @TableField("level")
    private Integer level;

    @ApiModelProperty("父菜单id，如果是顶级菜单则为0")
    @TableField("parent_id")
    private Integer parentId;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;


}
